scrolledwindow: add ::max-content-width and -height properties
authorGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Thu, 2 Jun 2016 02:18:37 +0000 (23:18 -0300)
committerGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Sun, 5 Jun 2016 14:02:59 +0000 (11:02 -0300)
commit4e5ecb705247df55979891cd9e4c1c0617a9b71a
treeef73fc349ded196723975432c77cb3f956e09864
parentbd86715ed3e8dec5caab605fa3afc04ce013906a
scrolledwindow: add ::max-content-width and -height properties

The GtkScrolledWindow has support to set the minimum content size (both
width and height) which controls the minimum space allocated, but does
not exposes any way to control the maximum size the content can grow.

After the introduction of GtkPopover, which always uses the minimum
size of it's children widgets, the lack of max-content-width and -height
properties became a concrete use case.

This patch introduces the GtkScrolledWindow::max-content-width and
-height properties. The properties will alter the minimum size of
the scrolled window, making it grow up to the set value. They also
respect the previously set ::min-content-width and -height.

https://bugzilla.gnome.org/show_bug.cgi?id=742281
gtk/gtkscrolledwindow.c
gtk/gtkscrolledwindow.h